import { FormComponentProps } from 'antd/lib/form';
import { SubscriptionAPI } from 'dva';
import { IGlobal } from '../../../Model/GlobalModel';

export interface IState {
  data: IListResult;
  filter: {
    pageNum: number;
    pageSize: number;
  };
  info: IPatientInfo;
}
export interface IFilter {
  pageNum: number;
  pageSize: number;
}
export interface IListResult {
  records: IDoctor[];
  current: number;
  pages: number;
  size: number;
  total: number;
}
export interface IDoctor {
  id: string;
  department: string;
  name: string;
  expertName: string;
  organizationName: string;
  attentionTime: string;
  title: string;
  msgCount: number;
  gender: number;
  headimgurl?: string;
}
export interface IPatientInfo {
  age?: number;
  gender?: number;
  morphUserUuid?: number;
  name?: string;
  headimgurl?: string;
}

export interface IProps extends FormComponentProps, SubscriptionAPI {
  global: IGlobal;
}
